package org.cos.generation.util.info;

import java.util.HashSet;
import java.util.List;

import org.cos.generation.epda.Method;

public class SRMT {

	private static HashSet<Method> systemMethodSet;

	public static void init(List<Method> methodList) {
		systemMethodSet = new HashSet<Method>();
		for (Method method : methodList) {
			systemMethodSet.add(method);
		}
	}
	
	public static void clear() {
		systemMethodSet.clear();
		systemMethodSet = null;
	}
	
	public static boolean containsMethod(Method method) {
		if (systemMethodSet != null) { 
			return systemMethodSet.contains(method);
		} else {
			throw new NullPointerException();
		}
	}


}
